<script setup lang="ts">
definePageMeta({ layout: false });

const { auth } = useAdminAuth();

const handleCancel = () => {
  window.history.back();
};

const handleLogout = () => {
  auth.value = null;
  return navigateTo("/admin");
};
</script>

<template>
  <AdminLogout @cancel="handleCancel" @ok="handleLogout" />
</template>
